<?php
session_start();
if(!session_is_registered("LoginOK"))//bien sessionLoginOK chua ton tai
 	{
 		session_register("LoginOK");
 		$_SESSION['LoginOK'] = 0;
 	}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>


<body topmargin="0">
<table width="800px"  border="0" cellpadding="0">
	<tr valign="top">
		<td>
<!--=================================== BEGIN ERRORMESSAGE ===================================== -->
<table width="100%"  border="0" cellpadding="0" >
  <tr valign="top">
    <td colspan="2"><?php include("Common/top.php"); ?></td>
  </tr>
  <tr>
    <td width="20%" align="left" valign="top"><?php include("Common/left.php"); ?></td>
    <td width="80%">
<!--=================================== BEGIN CODE  ===================================== -->
<br><br>
	MESSAGE <hr>
	<?php 
	$loi=0;
	if(isset($_GET['error'])){
		$loi = $_GET['error'];
	}
	?>
	<?php if ($loi==1) {?>
	
	Sorry:
	<br>+ Are you our member? You should sign up. 
	<br>+ If you have an acount on our web. You should login again.<hr>
	<a href="index.php">Go home</a>
	<?php } else if ($loi==2){ ?>
	
	Sorry: Password is incorrect. You should login again. <hr>
	<a href="index.php">Go home</a>
	
	<?php } else if ($loi==3) {?>
	Sorry: This UserName existed. Sign up again.
	<a href="index.php">Go home</a>
	
	<?php } else if ($loi==4) {?>
	You want to see your history. You should login again.<hr>
	<a href="index.php">Go home</a>
	
	<?php } ?>
	
<!--=================================== END CODE ======================================== -->
    </td>
  </tr>
  <tr>
    <td colspan="2"><?php include("Common/bottom.php"); ?></td>
  </tr>
</table>
<!-- =================================== END ERRORMESSAGE ========================================== -->
		</td>
	</tr>
</table>

</body>
</html>
